//
//  EatInfoViewController.m
//  Four_Fit_New
//
//  Created by lanou on 16/7/18.
//  Copyright © 2016年 xmaz. All rights reserved.
//

#import "EatInfoViewController.h"

@interface EatInfoViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *web;

@end

@implementation EatInfoViewController
- (UIWebView *)web{
    if (!_web) {
        _web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, kWidth, kHeight-64)];
        _web.delegate = self;
        _web.scrollView.bounces = NO;
        _web.scrollView.bouncesZoom = NO;
        
    }
    return _web;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    
    NSURLRequest *requset = [NSURLRequest requestWithURL:[NSURL URLWithString:self.url]];
    [self.web loadRequest:requset];
    
    [self.view addSubview:self.web];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
